package com.ftg.learn.day10;

/**
 * 单例模式
 *
 *  : 饿汉模式
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/8/4 上午11:07
 */
public class DemoSingleton {

    private static final DemoSingleton d = new DemoSingleton();

    private DemoSingleton(){}

    public static   DemoSingleton getInstance(){
        return d;
    }

}
